]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/test-theme: Don't initialize GTK
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 12 Apr 2023 14:44:52 +0000 (16:44 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 7 Jun 2023 11:12:40 +0000 (11:12 +0000)
St no longer requires GTK to be initialized, so this is no longer
needed (and pulls in an unnecessary GTK dependency).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2733>

src/st/meson.build
src/st/test-theme.c

index d77e43ba8c065bf40cd2634dd76894140328f1b7..fe6664dced16c8255d3f023d167c763fc105244c 100644 (file)
@@ -199,7 +199,7 @@ if get_option('tests')
   test_theme = executable('test-theme',
     sources: 'test-theme.c',
     c_args: st_cflags,
-    dependencies: [mutter_test_dep, gtk_dep, libxml_dep],
+    dependencies: [mutter_test_dep, libxml_dep],
     build_rpath: mutter_typelibdir,
     link_with: libst
   )
index a019cd6aba1e9e519818554473037a5c6f63b5e2..6e2702c159004d456faacc1a70bdefc2de5b2d98 100644 (file)
@@ -28,8 +28,6 @@
 #include <meta-test/meta-context-test.h>
 #include <meta/meta-backend.h>
 
-#include <gtk/gtk.h>
-
 static ClutterActor *stage;
 static StThemeNode *root;
 static StThemeNode *group1;
@@ -549,8 +547,6 @@ main (int argc, char **argv)
   GFile *file;
   g_autofree char *cwd = NULL;
 
-  gtk_init (&argc, &argv);
-
   /* meta_init() cds to $HOME */
   cwd = g_get_current_dir ();